import request from '@/utils/request'

export function listbaseDistrict(query) {
  return request({
    url: '/baseDistrict/list',
    method: 'get',
    params: query
  })
}

export function createbaseDistrict(data) {
  return request({
    url: '/baseDistrict/create',
    method: 'post',
    data
  })
}

export function readbaseDistrict(data) {
  return request({
    url: '/baseDistrict/get/' + data.id,
    method: 'get'
  })
}

export function updatebaseDistrict(data) {
  return request({
    url: '/baseDistrict/update',
    method: 'post',
    data
  })
}

export function deletebaseDistrict(data) {
  return request({
    url: '/baseDistrict/delete/' + data.id,
    method: 'delete'
  })
}
